Status:  U
Return-Path: <coco-bounces@maltedmedia.com>
Received: from noehlo.host ([127.0.0.1])
	by cave.mail.atl.earthlink.net (EarthLink SMTP Server) with SMTP id 1pBKG53JP3Nl3pX1; Sat, 8 Jan 2011 21:06:59 -0500 (EST)
Received: from five.pairlist.net ([216.92.1.121])
	by cave.mail.atl.earthlink.net (EarthLink SMTP Server) with ESMTP id 1pBKGmbh3Nl3pX0
	for <sfischer1@mindspring.com>; Sat, 8 Jan 2011 21:06:58 -0500 (EST)
Received: from five.pairlist.net (localhost [127.0.0.1])
	by five.pairlist.net (Postfix) with ESMTP id 573C43BD64;
	Sat,  8 Jan 2011 21:06:57 -0500 (EST)
X-Original-To: coco@lists5.maltedmedia.com
Delivered-To: coco@five.pairlist.net
Received: from deploy5.pair.com (qs281.pair.com [216.92.131.37])
	by five.pairlist.net (Postfix) with SMTP id 78CB03BD3E
	for <coco@lists5.maltedmedia.com>; Sat,  8 Jan 2011 21:06:55 -0500 (EST)
Received: (qmail 94193 invoked by uid 3002); 9 Jan 2011 02:06:55 -0000
Delivered-To: bathory-maltedmedia:com-coco@maltedmedia.com
Received: (qmail 94190 invoked from network); 9 Jan 2011 02:06:55 -0000
Received: from localhost.pair.com (HELO qs281.pair.com) (127.0.0.1)
	by localhost.pair.com with SMTP; 9 Jan 2011 02:06:55 -0000
Received: from localhost (localhost [127.0.0.1])
	by qs281.pair.com (Postfix) with SMTP id 48D80D4C10
	for <coco@maltedmedia.com>; Sat,  8 Jan 2011 21:06:55 -0500 (EST)
X-Virus-Check-By: qs281.pair.com
X-Spam-Check-By: qs281.pair.com
X-Spam-Status: No, hits=-0.5 required=5.0 tests=BAYES_00, RCVD_NUMERIC_HELO,
	WEIRD_PORT autolearn=no version=3.002005
X-Spam-Flag: NO
X-Spam-Level: 
X-Spam-Filtered: 2339d97e2cf80afbc3f9b452dd9fb067
Received: from mail.wdtv.com (mail.wdtv.com [66.118.69.84])
	by qs281.pair.com (Postfix) with ESMTP id 98D60D4C0F
	for <coco@maltedmedia.com>; Sat,  8 Jan 2011 21:06:54 -0500 (EST)
Received: (qmail 6904 invoked by uid 509); 8 Jan 2011 21:06:53 -0500
Received: from 204.111.25.230 (gheskett@wdtv.com@204.111.25.230) by
	mail.wdtv.com (envelope-from <gheskett@wdtv.com>,
	uid 508) with qmail-scanner-2.01 
	(clamdscan: 0.88.7/2478. spamassassin: 3.1.7.  
	Clear:RC:0(204.111.25.230):SA:0(-1.0/5.0):. 
	Processed in 1.928589 secs); 09 Jan 2011 02:06:53 -0000
Received: from n25s230.static.shentel.net (HELO coyote.coyote.den)
	(gheskett@wdtv.com@204.111.25.230)
	by mail.wdtv.com with SMTP; 8 Jan 2011 21:06:51 -0500
From: gene heskett <gheskett@wdtv.com>
To: coco@maltedmedia.com
Date: Sat, 8 Jan 2011 21:06:50 -0500
User-Agent: KMail/1.13.5 (Linux/2.6.37; KDE/4.5.4; i686; ; )
References: <C7D29AF1-F415-49D5-AA58-DB168DE048C6@ocs.net>
In-Reply-To: <C7D29AF1-F415-49D5-AA58-DB168DE048C6@ocs.net>
MIME-Version: 1.0
Message-Id: <201101082106.50911.gheskett@wdtv.com>
Subject: Re: [Coco] Converting ANSI-C to K&R(Microware) - Ansifront didn't
	work
X-BeenThere: coco@maltedmedia.com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: CoCoList for Color Computer Enthusiasts <coco@maltedmedia.com>
List-Id: CoCoList for Color Computer Enthusiasts <coco.maltedmedia.com>
List-Unsubscribe: <http://five.pairlist.net/mailman/listinfo/coco>,
	<mailto:coco-request@maltedmedia.com?subject=unsubscribe>
List-Archive: <http://five.pairlist.net/pipermail/coco/>
List-Post: <mailto:coco@maltedmedia.com>
List-Help: <mailto:coco-request@maltedmedia.com?subject=help>
List-Subscribe: <http://five.pairlist.net/mailman/listinfo/coco>,
	<mailto:coco-request@maltedmedia.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: coco-bounces@maltedmedia.com
Errors-To: coco-bounces@maltedmedia.com
X-ELNK-Received-Info: spv=0;
X-ELNK-AV: 0
X-ELNK-Info: sbv=1; sbrc=-0; sbf=c0; sbw=000;

On Saturday, January 08, 2011 08:03:56 pm Michael Furman did opine:

> I'm still hell-bent on getting a screen editor that works over
> serial/telnet on my coco, and vi-like would be the best. I have PVIC
> that compiles for the coco but the binary is too big to fit in memory
> and run (The binary is 77k)
> 
So am I FWIW.

> I thought about using Busybox's built-in VI.  Turns out someone already
> pulled it out as a standalone: http://freshmeat.net/projects/virus 
> This compiles and runs fine on my Mac but it's ANSI-C so need to
> translate it to compile on the Coco.  I tried with Ansifront and the
> program is so big it blew Ansifront's mind and ran out of stack space
> and memory.  Is there another way to convert ANSI C to K&R C
> automatically?  My searching on the interwebs found no hits-- all the
> hits were K&R to ANSI.  I don't care what OS it runs on
> (Linux/Windows/Mac/Nitros9)   Also the ansifront instructions say to
> run "c.prep" first, which leads into my second question....
> 
> The ansifront documentation mentions "Version 2.5 of CC" and I do see
> this on RTSI.  I'd appreciate it if someone could give me some pointers
> on how to cobble together the most recent C environment that runs on
> Nitros9, which libraries and Cprep to get to go along with this...

Any script that runs things in the correct order, piping the output of one 
function to the next in the proper order, will suffice.  The 'cc' 
architecture, while compiled, is very versatile, and I have placed the  
cc252.lzh archive on my web page shown below.  You can rebuild it to suit 
if it doesn't do what you want.

Ansifront012, AIUI it, should not ever have its mind blown as it is 
essentially a void to int translator, just treating the serial text stream 
that goes through it, making the appropriate substitutions.

Your apparent problems with it are really telling me that you are probably 
using the original c.prep that came with the compiler, and that utility 
chokes and passes garbage on to the rest of the compiler when the src code 
file size exceeds nominally 10k in size.  It is patently incapable of 
building a working rzsz-3.3.6, or even the original 3.1.6 version of it.  
That was one of the reasons that it was the subject of a re-write by a comp 
sci student way back when, who took it to the version 1.5 or 1.6 level.  
His code was very well organized, which allowed me to continue it for a bit 
after he got an A & went on to other things.  My final release that I know 
works for src code bases up to at least 36k, is known as cprep19.  It is 
available several places on the net, including my own machine at 
<http://gene.homelinux.net:85/gene/Genes-os9-stf> as cprep19.lzh

I don't proclaim that it will build all of your code, but it is at least 
worth the try.

If you are going to be doing transcendental math functions in C, I have the 
trig.l stuff in that same directory.  The .l stuff goes in /dd/LIB so the 
compiler and cc can find it.  This does trig functions to about 16.5 digits 
accuracy over an EE range of +-EE38 or so. There is a src package and a 
read.me.re.trig.l text file too

See also CnoY, for code intended to be run on a coco3 only, and a Copt2 
intended to do a bit more if it can if placed after the original c.opt, see 
the help message from cc (252) for additional hints once it is unpacked.

Yelp if you need anything else Michael, I probably have it squirreled away 
someplace.  Finding it might take a while though. ;-)

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
The eternal feminine draws us upward.
		-- Goethe

--
Coco mailing list
Coco@maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco